package com.equdao.car_violation_inquiry.pojo;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.sql.Date;

/**
 * @Author: 杨忠强
 * @Date: 2018/5/29 15:01
 * @Description:
 */
@Data
public class BaseViolationBean {
    @NotEmpty(message = "通道编码为空")
    private String channelCode;//通道编码
    @NotEmpty(message = "token为空")
    private String token;//令牌
    @NotEmpty(message = "车牌号为空")
    @Size(max = 7,min = 7,message = "车牌号信息错误")
    private String vehicleNo;//车牌号；必传， 需查询的车牌号
    @NotEmpty(message = "车辆类型为空")
    @Size(max = 3,min = 1,message = "请输入合理类型")
    private String carType;//车型；必传， 车辆类型，默认02（小型汽车）

    @Size(max = 32,min = 6,message = "车架号错误")
    private String frameNo;//车架号；必传

    @Size(max = 32,min = 6,message = "发动机号错误")
    private String engineNo;//发动机号；必传

    private String status;//车辆状态

    private String origin; //请求上游

    private Date createTime; //创建时间

}
